<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
session_start();

if($this->pageTitle == "Home" && $_SERVER["QUERY_STRING"]==""){
	unset($_SESSION['productType']);
}

if(isset($_GET['type']) && $_GET['type'] != ""){
	$_SESSION['productType'] = $_GET['type'];
}
else
{
	$_SESSION['productType'] = "hot";
}

if(isset($_GET['category']) or isset($_GET['brand']) or isset($_GET['tag'])){
	if($_SESSION['productType']=="new") {$_SESSION['productType']="hot";}

	if(isset($_GET['category'])){
		$strVar =  "&category=".$_GET['category'];
	}else if(isset($_GET['brand'])){
		$strVar =  "&brand=".$_GET['brand'];
	}else{
		$strVar =  "&tag=".$_GET['tag'];
	}
	
?>


<li<?php if($_SESSION['productType']=="hot") echo " class='hot'"; ?>><a href="./?type=hot<?php echo $strVar?>" title="">HOT</a></li>
<li<?php if($_SESSION['productType']=="all") echo " class='hot'"; ?>><a href="./?type=all<?php echo $strVar?>" title="">ALL</a></li>
<li<?php if($_SESSION['productType']=="xxxxl") echo " class='hot'"; ?>><a href="./?type=xxxxl<?php echo $strVar?>" title="">BIG &amp; TALL</a></li>
<li<?php if($_SESSION['productType']=="sales") echo " class='hot'"; ?>><a href="./?type=sales<?php echo $strVar?>" title="">SALES</a></li>

<?php } else { ?>

<li<?php if($_SESSION['productType']=="hot") echo " class='hot'"; ?>><a href="./?type=hot" title="">HOT</a></li>
<li<?php if($_SESSION['productType']=="new") echo " class='hot'"; ?>><a href="./?type=new" title="">NEW &amp; UNDER 50</a></li>
<li<?php if($_SESSION['productType']=="xxxxl") echo " class='hot'"; ?>><a href="./?type=xxxxl" title="">BIG &amp; TALL</a></li>
<li<?php if($_SESSION['productType']=="sales") echo " class='hot'"; ?>><a href="./?type=sales" title="">SALES</a></li>

<?php } ?>